//
//  LYRadioTableViewCell.m
//  音伴尔家听宝
//
//  Created by Burgess on 2017/6/15.
//  Copyright © 2017年 Burgess. All rights reserved.
//

#import "LYRadioTableViewCell.h"

@interface LYRadioTableViewCell()


@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *timeLength;
@property (weak, nonatomic) IBOutlet UIButton *addBtn;

@end


@implementation LYRadioTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)layoutSubviews{
    [super layoutSubviews];
    
    self.titleLabel.text = self.classInfoModel.name;
    self.timeLength.text = self.classInfoModel.timelength;
    self.addBtn.frame = CGRectMake(self.frame.size.width-50, 13, 30, 30);
    
}

-(instancetype)init{
    if (self = [super init]) {
        self = [[[NSBundle mainBundle] loadNibNamed:@"LYRadioTableViewCell" owner:NULL options:NULL]firstObject];
    }
    return self;
}
- (IBAction)clickAddBtn:(id)sender {
    NSLog(@"12");
}

@end
